#include<iostream>
#include<fstream>
#include"MyHeap.cpp"

using namespace std;

int main()
{
    fstream file;
    file.open("HeapData.txt",ios::in);
    MyHeap<int> * heap = new MyHeap<int>(10);
    for(int i = 0,temp;i<10;i++)
    {
       file>>temp;
       heap->InsertNode(temp);
    }
    cout<<"Init Heap"<<endl;
    heap->printHeap();
    cout<<"SiftUP"<<endl;
    heap->SiftUp(9);
    heap->printHeap();
    cout<<"Remove"<<endl;
    heap->Remove(4);
    heap->printHeap();
}